<?php
use yii\helpers\Html;
?>
<style>
    .my-agent-jui{
        margin-top: 48px;
    }
</style>
    <div class="my-agent-jui">
        <?php
        if(\Yii::$app->authManager->checkAccess(Yii::$app->user->id, 'admin')):
            ?>
            <div>
                <?= Html::beginForm(['predict/admin',], 'post', []) ?>
                <?= Html::label('航空公司或代理人', 'airline', []) ?>
                <?= Html::input('text', 'airline', '', ['id'=>'myairline']) ?>
                <?= Html::submitButton('查询', ['class' => 'submit']) ?>
                <?= Html::endForm() ?>
            </div>
            <?php
        endif;
        ?>
        <div>
            <?=\yii\jui\Tabs::widget([
                'items' => [
                    [
                        'label' => '销售情况',
                        'content' => $this->renderAjax('sale',['airline'=>$airline]),
                    ],
                    [
                        'label' => '相关代理人',
                        'content' =>$this->renderAjax('agents',['airline'=>$airline,]),
                        'options' => ['tag' => 'div'],
                        'headerOptions' => ['class' => 'my-class'],
                    ],
                ],
                'options' => ['tag' => 'div'],
                'itemOptions' => ['tag' => 'div'],
                'headerOptions' => ['class' => 'my-class'],
                'clientOptions' => ['collapsible' => false],
            ])?>
        </div>
    </div>

